﻿namespace WorkOrder.Model
{
    public class Model_Table_Permission
    {
        private int _permission_ID;
        private int _user_id;
        private string _table_name;
        private bool _permission_Insert;
        private bool _permission_Delete;
        private bool _permission_Modify;
        private bool _permission_Query;
        private string _remark;

        public Model_Table_Permission() { }
        public Model_Table_Permission(int permission_ID, int user_id, string table_name, bool permission_Insert, bool permission_Delete, bool permission_Modify, bool permission_Query, string remark)
        {
            _permission_ID = permission_ID;
            _user_id = user_id;
            _table_name = table_name;
            _permission_Insert = permission_Insert;
            _permission_Delete = permission_Delete;
            _permission_Modify = permission_Modify;
            _permission_Query = permission_Query;
            _remark = remark;
        }

        /// <summary>
        /// 权限编号
        /// </summary>
        public int Permission_ID { set { _permission_ID = value; } get { return _permission_ID; } }

        /// <summary>
        /// 用户编号
        /// </summary>
        public int User_id { set { _user_id = value; } get { return _user_id; } }

        /// <summary>
        /// 表名
        /// </summary>
        public string Table_name { set { _table_name = value; } get { return _table_name; } }

        /// <summary>
        /// 增加
        /// </summary>
        public bool Permission_Insert { set { _permission_Insert = value; } get { return _permission_Insert; } }

        /// <summary>
        /// 删除
        /// </summary>
        public bool Permission_Delete { set { _permission_Delete = value; } get { return _permission_Delete; } }

        /// <summary>
        /// 修改
        /// </summary>
        public bool Permission_Modify { set { _permission_Modify = value; } get { return _permission_Modify; } }

        /// <summary>
        /// 查询
        /// </summary>
        public bool Permission_Query { set { _permission_Query = value; } get { return _permission_Query; } }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { set { _remark = value; } get { return _remark; } }
    }
}
